﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataModel
{
    public class ComboObject
    {
        public string ObjectName { get; set; }
        public string BelongedCategoryName { get; set; }
        public string Unit { get; set; }
        public PriceType PriceType { get; set; }
        public decimal Price { get; set; }
        public List<ComboComponentObject> ComponentList { get; set; }

        public ComboObject(string comboName, string catName)
        {
            this.ObjectName = comboName;
            this.BelongedCategoryName = catName;
            this.PriceType = PriceType.FixedPrice;
            this.Price = 0.0M;
            ComponentList = new List<ComboComponentObject>();
        }

        public ComboObject(string comboName, string catName, string unit)
            : this(comboName, catName)
        {
            this.Unit = unit;
        }

        public ComboObject() : this(string.Empty, string.Empty) { }
    }
}
